package com.craterhill.java.ccp.dao.impl;

import java.util.List;

import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.craterhill.java.ccp.common.beans.Country;
import com.craterhill.java.ccp.dao.CountryDao;

@Repository
public class CountryDaoImpl extends AbstractDao<Country> implements CountryDao {

	@Autowired
	public CountryDaoImpl(final DataSource dataSource) {
		super(dataSource);
	}

	@Override
	public Country find(int recordId) {
		return null;
	}

	@Override
	public List<Country> findAll() {
		 return super.findMultipleObject(FIND_ALL_COUNTRY,new CountryExtractor());
	}

}
